part of _;

extension on SettingPage {
  Widget view_cache() {
    return Row(
      children: [
        Text("缓存存储空间："),
        Text(cache, style: TextStyle(color: YConfig.themeColor)),
        YExpanded(),
        YButton(
          decoration: BoxDecoration(color: YConfig.themeColor, borderRadius: BorderRadius.circular(5)),
          padding: EdgeInsets.fromLTRB(10, 5, 10, 5),
          child: Text("一键清空", style: TextStyle(color: Colors.white)),
          onTap: () => controller_clearCache(),
        ),
      ],
    );
  }
}
